package com.bjpowernode.service;

import com.bjpowernode.domain.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface OrderService extends IService<Order>{

    /**
     * 做抢购
     *
     * @param userId
     * @param houseId
     */

    void doSpike(Integer userId, String houseId);

    /**
     * 用户订单查询
     * @param userId
     * @return
     */
    List<Order> getOrdersByUser(String userId);

    /**
     * 用户评论接口
     * @param rate
     * @param feelback
     * @param orderId
     * @return
     */
    Boolean doFeelback(Integer rate, String feelback, Integer orderId);
}
